package com.yuw.dao;

import java.util.List;

import com.yuw.bean.DeptsBean;

public interface DeptsDao {
	
	/**
	 * 一对一查询
	 * @param deptid
	 * @return
	 */
	List<DeptsBean> selectByPrimaryKeyOne2One(Long deptid);
	
	/**
	 * 一对多查询
	 * 
	 * @param deptid
	 * @return
	 */
	List<DeptsBean> selectByPrimaryKeyOne2Many(Long deptid);
	
    int deleteByPrimaryKey(Long deptid);

    int insert(DeptsBean record);

    int insertSelective(DeptsBean record);

    DeptsBean selectByPrimaryKey(Long deptid);

    int updateByPrimaryKeySelective(DeptsBean record);

    int updateByPrimaryKey(DeptsBean record);
}